hdrs = ipc.h 
hdrs = ipc.h
opts = -g -c

all: producer consumer

producer: producer.o ipc.o
	gcc producer.o ipc.o -o producer

consumer: consumer.o ipc.o
	gcc consumer.o ipc.o -o consumer

producer.o: producer.c $(hdrs)
	gcc $(opts) producer.c -o producer.o

consumer.o: consumer.c $(hdrs)
	gcc $(opts) consumer.c -o consumer.o

ipc.o: ipc.c $(hdrs)
	gcc $(opts) ipc.c -o ipc.o

clean:
	rm -f producer consumer *.o
